import java.math.BigInteger;

public class demo23 {
    public static void main(String[] args) {
        BigInteger x = new BigInteger("7");
        BigInteger y = new BigInteger("1921");
        BigInteger pow = x.pow(2020);
        BigInteger re = pow.remainder(y);
        System.out.println(re);

    }
}
